Learn R Programming

shinyBS (version 0.20)

NavBar Inputs: NavBar Versions of Shiny Inputs

Description

These are stanard shiny inputs that have been slightly reworked to fit better into navBars

Usage

bsNavDateRangeInput(inputId, label, start = NULL, end = NULL, min = NULL, 
                    max = NULL, format = "yyyy-mm-dd", startview = "month", 
                    weekstart = 0, language = "en", width = NULL)
bsNavDateInput(inputId, label, value = NULL, min = NULL, max = NULL, 
               format = "yyyy-mm-dd", startview = "month", weekstart = 0, 
               language = "en", width = NULL)
bsNavTextInput(inputId, label, value = "", width=NULL)
bsNavButton(inputId, label)

Arguments

inputId
Input variable to assign the control's value to
label
Text to appear as placeholder in text object
value
startview
weekstart
language
width
Optional width of element in pixels

Details

These are identical to the regular shiny inputs with the exception of an added 'width' arguement that allows the designer more control over their size and removal of labels in favor of 'placeholder' text which also saves room in the navbar. The update functions for the standard inputs also work for their navBar versions.

See Also

dateInput dateRangeInput textInput actionButton

Examples

Run this code
See original versions for examples

Run the code above in your browser using DataLab